<%@ include file="/WEB-INF/views/taglib.jsp" %>
<h3>Component Form</h3>	
	<form:form id="form" method="post" modelAttribute="assetModel" cssClass="simpleForm">
		<form:hidden path="assetModelId" />
		<div class="clear" style="height:1px">&nbsp;</div>
		<jsp:include page="/WEB-INF/views/message.jsp"></jsp:include>
	  	<fieldset>
	  		<legend>Component Info</legend>
			<p>
	  		<label>Asset Model</label> ${assetModel.assetModelName }
	  		</p>	  		
	  		<table id="serialNoTable" class="gridSearch">
	  			<thead>
	  				<tr>
	  					<th>Company Code</th>
	  					<th>Location</th>
	  					<th>Balance Qty</th>
	  				</tr>
	  			</thead>
	  			<tbody>
	  			<c:forEach items="${assetModel.assetComponents}" var="item" varStatus="status">
	  				<tr>
	  					<td>
	  						${item.assetComponentPK.companyCode}  						
	  					</td>
	  					<td>
	  						${item.location.locationName}  						
	  					</td>
	  					<td>
	  						${item.quantity}						  		
						</td>
	  					
	  				</tr>
	  			</c:forEach>
	  			</tbody>
	  		</table>
			
			</fieldset>
      <div class="action">
  			<a href="<c:url value="/assetModel/search" />" class="button">Back</a>
	 	</div>	
	</form:form>
	
	<script type="text/javascript">
		$(document).ready(function() {
			
			
			
		});
		
		
	</script>